home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000256_news@columbia.edu_Tue Oct 31 14:16:58 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA14410
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 31 Oct 1995 09:17:07 -0500
  3. Received: by apakabar.cc.columbia.edu id AA10071
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 31 Oct 1995 09:17:05 -0500
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Macro-keys in C-Kermit ?
  9. Date: 31 Oct 1995 14:16:58 GMT
  10. Organization: Columbia University
  11. Lines: 51
  12. Message-Id: <475b4q$9q8@apakabar.cc.columbia.edu>
  13. References: <474ue0$s8g@news.uni-c.dk>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <474ue0$s8g@news.uni-c.dk>,
  18. Henrik Mathorne <ischm@inet.uni-c.dk> wrote:
  19. : Is it possible to execute a macro by pressing a hotkey
  20. : in C-kermit, as it is in MS-Kermit. What I want to do
  21. : is, that by pressing a hotkey I select a file on the
  22. : remote system, escape to local system and begin to receive
  23. : the file I selected. I know this can be done on the MS-DOS
  24. : version, but I can't find anything on that subject in
  25. : the "Using C-Kermit" book.
  26. : (We are running C-Kermit 5A(190) on IBM AIX 4.1)
  27. Long question, short answer: no.  The basic reason for this
  28. limitation is that UNIX versions of C-Kermit do not have
  29. direct access to the keyboard, and so they cannot "see" special
  30. keys (like F-keys, Alt-key combinations, arrow keys, editing
  31. keys, etc).  Only "ASCII" keys are visible, and in general you
  32. need all of them to stand in for themselves.  A bit more about
  33. this in item 24 of our FAQ:
  34.  
  35.   http://www.columbia.edu/kermit/faq.html
  36.   ftp://kermit.columbia.edu/kermit/faq.txt
  37.  
  38. An interesting project would be to add direct keyboard access
  39. capability to UNIX C-Kermit, so it could see keyboard scan codes
  40. rather than just ASCII values.  However, the method for getting
  41. at scan codes would be:
  42.  
  43.   (a) Totally dependent on exactly which kind of computer
  44.       and keyboard you have;
  45.  
  46.   (b) Totally dependent on the particular operating system and
  47.       version (and UNIX C-Kermit supports about 400 different
  48.       UNIX platforms);
  49.  
  50.   (c) Dependent on whether the OS even offers an API for getting
  51.       at the keyboard (most don't).
  52.  
  53. And even when these three conditions held, the result would still
  54. be inconsistent even on a particular computer, depending on whether
  55. you were at its console, logged in through a tty device, telnetted,
  56. rlogin'd, in an xterm window, or any of various other GUI-du-jour
  57. windows.  Bringing this capability to all the variants of C-Kermit
  58. and keeping it up to date with new OS releases and hardware would be
  59. a full-time job.  Still, it might be interesting to try it for a
  60. couple of high-profile workstations -- Sun, HP, RS/6000, Linux, ...
  61. But quite honestly, I have never seen documentation anywhere showing
  62. how to do this.  If anybody wants to send hints, I'll be glad to add
  63. them to my pile.
  64.  
  65. - Frank